package com.smomo.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author smomo
 * @since 2023-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("b_shop")
@ApiModel(value="BShop对象", description="")
public class BShop implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "礼品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "礼品图片")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty(value = "积分")
    @TableField("points")
    private Long points;

    @ApiModelProperty(value = "库存数量")
    @TableField("stock_num")
    private Long stockNum;

    @ApiModelProperty(value = "商品状态，0-发布，1-上架")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;


}
